package com.bwie.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户表
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class LoginForm implements Serializable {

    /**
     * 
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 
     */
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",message = "手机号格式不正确")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
    *
    */
    @NotBlank(message = "验证码不能为空")
    private String phoneCode;

}